package cn.lttest.user.service;

import cn.lttest.user.dao.UserDao;
import cn.lttest.user.entity.User;

public class UserService {
	private UserDao dao = new UserDao();

	public boolean ajaxValidateUsername(User u) {
		User user = dao.findByUsername(u.getUsername());
		if (user == null) {
			return false;
		}
		return true;
	}
}
